/*
********************************************************************************
*                                EXAMPLE CODE
*
*            (c) Copyright 2003-2013; Micrium, Inc.; Weston, FL
*
*        All rights reserved.  Protected by international copyright laws.
*        Knowledge of the source code may NOT be used to develop a similar product.
*        Please help us continue to provide the Embedded community with the finest
*        software available.  Your honesty is greatly appreciated.
********************************************************************************
*/

/*
********************************************************************************
*                             uC/OS-III Application Code
*
* The template application code provided here can be used as a foundation for 
* your own uC/OS-III-based projects.  This file, app_cfg.h, is normally where an 
* application's task priorities and stack sizes
* are defined.
*
* Filename      : spi.h
* Version       : V1.00
********************************************************************************
*/

#ifndef  __SPI_H__
#define  __SPI_H__

#include  "includes.h"

/*
********************************************************************************
*                            PRIVATE TYPEDEF
********************************************************************************
*/

/*
********************************************************************************
*                            PRIVATE DEFINE
********************************************************************************
*/

/*
********************************************************************************
*                            PRIVATE VARIABLES
********************************************************************************
*/

/*
********************************************************************************
*                            FUNCTION PROTOTYPES
********************************************************************************
*/
extern void    SPI1_Config(void);
extern void    SPI1_SetSpeed(uint8_t SPI_BaudRatePrescaler);
extern uint8_t SPI1_ReadByte(void);
extern void    SPI1_WriteByte(uint8_t spi1_tx_data);

extern void    SPI2_Config(void);
extern void    SPI2_SetSpeed(uint8_t SPI_BaudRatePrescaler);
extern uint8_t SPI2_ReadByte(void);
extern void    SPI2_WriteByte(uint8_t spi2_tx_data);
extern void    SPI2_Module_Selected(void);
extern void    SPI2_Module_NoSelect(void);
#endif    //__SPI_H__